﻿#include "db_cfg_g_def.h"

SqLiteDB		g_pSqLiteDB;
DbCfgFun		g_DbCfgFunObj;

QApplication	 *g_pApp = NULL;



int InitApp()
{
	int ResultDb=g_pSqLiteDB.Init_DB();
	return ResultDb;
}

int	FinitApp()
{
	int ResultDb=g_pSqLiteDB.Fini_DB();
	return ResultDb;
}

bool  IsCurTableEnableEdit(int AppType, int TableId, int ParentId)
{
	if (AppType<=0 || TableId <=0)
	{
		return false;
	}
	if (SYSTEM_TYPE_NSA_CD == AppType)
	{
		return false;
	}else
	{
		return true;
	}
	return false;
}